package com.cms.dao.mapper;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cms.common.annotation.RecordLog;
import com.cms.exception.SystemDBException;
import com.cms.model.LotteryBets;
import com.cms.model.TrLotteryVo;

public interface LotteryMapper {

	 /***
	  * 
	  * @param lottery
	  * @throws SystemDBException
	  */
	 @RecordLog(expression="修改彩种[${id}]${lotteryLname}信息",name="lotteryLname",catalog="lotteryInfo")
	 public void updateLottery(@Param("lottery")TrLotteryVo lottery)throws SystemDBException;
	 
	 
	 /***
	  *  获取彩种信息
	  * @param lottery
	  * @return
	  */
	 public TrLotteryVo getLotteryInfo(@Param("lottery")TrLotteryVo lottery);
	 
	 
	 /***
	  *  删除用户投注记录
	  * @param lottery
	  */
	 @RecordLog(expression="删除用户投注[${id}]记录",name="id",catalog="commBet")
	 public void updateLotteryBet(@Param("lotteryBet")Map<String,Object> lottery);
	 
	 /***
	  * 
	  * @param lottery
	  * @return
	  */
	 public LotteryBets queryLotteryBet(@Param("lotteryBet")Map<String,Object> lottery);
}
